import request from '@/utils/request';

/**
 * 执行登录，获取token
 * @returns 
 */
export async function fakeAccountLogin(params) {
  return request('/auth/login', {
    method: 'POST',
    data: params,
  });
}

/**
 * 执行退出
 * @returns 
 */
export async function logout() {
  return request.post('/auth/logout')
}

export async function getFakeCaptcha(mobile) {
  return request(`/api/login/captcha?mobile=${mobile}`);
}
